<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学习题目</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#2196F3',
                        'primary-light': '#64B5F6',
                        'primary-dark': '#1976D2'
                    }
                }
            }
        }
    </script>
    <style>
        body {
            background: #F5F7FA;
        }
        .safe-bottom {
            padding-bottom: calc(env(safe-area-inset-bottom) + 80px);
        }
        .btn-gradient {
            background: linear-gradient(to right, #2196F3, #1E88E5);
        }
    </style>
</head>
<body>
    <div class="w-[375px] mx-auto min-h-screen bg-white relative">
        <!-- 顶部导航 -->
        <header class="fixed top-0 w-[375px] z-50 bg-white border-b border-gray-100">
            <div class="h-[48px] px-4 flex items-center justify-between">
                <h1 class="text-lg font-medium text-gray-800">学习题目</h1>
            </div>
        </header>

        <!-- 主内容区 -->
        <main class="pt-[48px] px-4 safe-bottom">
            <!-- 基础汉字展示 -->
            <section class="mt-4 mb-6">
                <div class="text-2xl font-medium text-center text-gray-800 tracking-wider">
                    天地人和为贵
                </div>
            </section>

            <!-- 关卡一 -->
            <section class="mb-4 bg-white rounded-xl shadow-sm">
                <div class="p-3 border-b border-gray-50 flex justify-between items-center">
                    <span class="text-sm text-gray-500">第一关</span>
                    <div class="flex items-center space-x-3">
                        <button class="text-primary">
                            <i class="fas fa-volume-up"></i>
                        </button>
                        <button class="text-primary">
                            <i class="fas fa-eye"></i>
                        </button>
                    </div>
                </div>
                <div class="p-3">
                    <div class="grid grid-cols-3 gap-2">
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">天地</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">人和</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">为人</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">贵重</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">地和</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">天人</span>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 关卡二 -->
            <section class="mb-4 bg-white rounded-xl shadow-sm">
                <div class="p-3 border-b border-gray-50 flex justify-between items-center">
                    <span class="text-sm text-gray-500">第二关</span>
                    <div class="flex items-center space-x-3">
                        <button class="text-primary">
                            <i class="fas fa-volume-up"></i>
                        </button>
                        <button class="text-primary">
                            <i class="fas fa-eye"></i>
                        </button>
                    </div>
                </div>
                <div class="p-3">
                    <div class="grid grid-cols-2 gap-2">
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">天地人</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">为人贵</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">地和天</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">人为贵</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">和地人</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">贵天和</span>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 关卡三 -->
            <section class="mb-4 bg-white rounded-xl shadow-sm">
                <div class="p-3 border-b border-gray-50 flex justify-between items-center">
                    <span class="text-sm text-gray-500">第三关</span>
                    <div class="flex items-center space-x-3">
                        <button class="text-primary">
                            <i class="fas fa-volume-up"></i>
                        </button>
                        <button class="text-primary">
                            <i class="fas fa-eye"></i>
                        </button>
                    </div>
                </div>
                <div class="p-3">
                    <div class="grid grid-cols-2 gap-2">
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">天地人和</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">为贵天地</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">人和为贵</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">地和人贵</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">贵为地和</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">和天人地</span>
                        </div>
                    </div>
                </div>
            </section>

            <!-- 关卡四 -->
            <section class="mb-4 bg-white rounded-xl shadow-sm">
                <div class="p-3 border-b border-gray-50 flex justify-between items-center">
                    <span class="text-sm text-gray-500">第四关</span>
                    <div class="flex items-center space-x-3">
                        <button class="text-primary">
                            <i class="fas fa-volume-up"></i>
                        </button>
                        <button class="text-primary">
                            <i class="fas fa-eye"></i>
                        </button>
                    </div>
                </div>
                <div class="p-3">
                    <div class="grid grid-cols-1 gap-2">
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">天地人和为贵也</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">为贵天地人和谐</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">人和为贵天地间</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">地和人贵天为先</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">贵为地和人天下</span>
                        </div>
                        <div class="p-2 bg-primary/5 rounded-lg text-center">
                            <span class="text-sm">和天人地贵为重</span>
                        </div>
                    </div>
                </div>
            </section>
        </main>

        <!-- 底部导航栏 -->
        <nav class="fixed bottom-0 w-[375px] bg-white border-t border-gray-100">
            <div class="grid grid-cols-5 h-[56px]">
                <a href="generate.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-plus-circle text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">生成</span>
                </a>
                <a href="study.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-book text-primary"></i>
                    <span class="text-xs mt-1 text-primary">学习</span>
                </a>
                <a href="history.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-history text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">历史</span>
                </a>
                <a href="rewards.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-gift text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">奖励</span>
                </a>
                <a href="profile.html" class="flex flex-col items-center justify-center">
                    <i class="fas fa-user text-gray-400"></i>
                    <span class="text-xs mt-1 text-gray-400">我的</span>
                </a>
            </div>
            <div class="h-[env(safe-area-inset-bottom)]"></div>
        </nav>

        <!-- 底部功能按钮 -->
        <div class="fixed bottom-[56px] left-0 w-[375px] bg-white border-t border-gray-100 px-4 py-3">
            <div class="flex gap-3">
                <button class="flex-1 h-[44px] bg-gray-50 text-gray-600 rounded-xl hover:bg-gray-100 transition-all">
                    打乱顺序
                </button>
                <button class="flex-1 h-[44px] btn-gradient text-white rounded-xl">
                    重新生成
                </button>
            </div>
        </div>
    </div>
</body>
</html>